$(document).ready(function() {
	funcMask();
});

function funcMask() {
	$('.money').mask('000.000.000.000.000,00', {
		reverse : true
	});
}

function handleLoginRequest(xhr, status, args) {
	if (args.inptTitulo) {
		PF('dlg').hide();
		$('#loginLink').fadeOut();
	}
}

function validate(evt) {
	var theEvent = evt || window.event;
	var key = theEvent.keyCode || theEvent.which;
	key = String.fromCharCode(key);
	var regex = /[0-9]|\./;
	if (!regex.test(key)) {
		theEvent.returnValue = false;
		if (theEvent.preventDefault)
			theEvent.preventDefault();
	}
}
